package io.unicorn.modules.water.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * ${comments}
 * 
 * @author LNCG
 * @email LNCG@USTL.EDU.CN
 * @date 2021-05-03 08:18:01
 */
@Data
@TableName("Gather_DB.dbo.T_Device_Info")
public class TDeviceInfoEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 设备编号
	 */
	@TableId(type = IdType.INPUT)
	private String deviceId;
	/**
	 * 主机通道
	 */
	private Integer masterNum;
	/**
	 * 设备二管号
	 */
	private Integer slaveNum;
	/**
	 * 采集卡号
	 */
	private Integer cardNum;
	/**
	 * 设备区域
	 */
	private Integer deviceArea;
	/**
	 * 设备小区
	 */
	private Integer deviceNei;
	/**
	 * 设备楼号
	 */
	private Integer deviceBuild;
	/**
	 * 设备单元
	 */
	private Integer deviceUnit;
	/**
	 * 采集通道
	 */
	private Integer routeNum;
	/**
	 * 表号
	 */
	private Integer meterNum;
	/**
	 * $column.comments
	 */
	private Integer typeId;
	/**
	 * $column.comments
	 */
	private String neiName;
	/**
	 * 备注1
	 */
	private String memo1;
	/**
	 * 备注2
	 */
	private String memo2;
	/**
	 * 备注3
	 */
	private String memo3;

	@TableField(exist=false)
	private String typeName;


	public static Map<String, String> getHeadName(){
		Map<String, String> headMap = new LinkedHashMap<String, String>();

		headMap.put("deviceId","设备号");
		headMap.put("masterNum","主机通道");
		headMap.put("slaveNum","设备二管号");
		headMap.put("cardNum","采集卡号");
		headMap.put("deviceArea","设备区域");
		headMap.put("deviceNei","设备小区");
		headMap.put("deviceBuild","设备楼号");
		headMap.put("deviceUnit","设备单元");
		headMap.put("routeNum","采集通道");
		headMap.put("meterNum","表号");
		headMap.put("typeId","类型码");
		headMap.put("neiName","内部名称");
		headMap.put("memo1","备注1");
		headMap.put("memo2","备注2");
		headMap.put("memo3","备注3");

		return headMap;
	};

}
